package cn.iocoder.yudao.module.nginxui.controller.admin.httplocation.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - Nginx Server下的Location块配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class HttpLocationRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2956")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "server配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13878")
    @ExcelProperty("server配置ID")
    private Long serverId;

    @Schema(description = "匹配路径", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("匹配路径")
    private String path;

    @Schema(description = "Location根目录")
    @ExcelProperty("Location根目录")
    private String root;

    @Schema(description = "反向代理地址")
    @ExcelProperty("反向代理地址")
    private String proxyPass;

    @Schema(description = "尝试文件")
    @ExcelProperty("尝试文件")
    private String tryFiles;

    @Schema(description = "重写规则")
    @ExcelProperty("重写规则")
    private String rewrite;

    @Schema(description = "允许访问的IP")
    @ExcelProperty("允许访问的IP")
    private String allow;

    @Schema(description = "禁止访问的IP")
    @ExcelProperty("禁止访问的IP")
    private String deny;

    @Schema(description = "Location块额外自定义配置")
    @ExcelProperty("Location块额外自定义配置")
    private String extraLocationConfig;

    @Schema(description = "排序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序号")
    private Integer sort;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}